1
mIRC/pawn Scripting / Re: !flip command need to fix
« on: January 15, 2011, 08:31:44 am »
can u write the codes in script plz
or give me full code for flip command
or give me full code for flip command
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
D:\VCMPSE~1\MYSERV~1\GAMEMO~1\GUPS11~1.PWN(1713) : error 001: expected token: ";", but found "if"
D:\VCMPSE~1\MYSERV~1\GAMEMO~1\GUPS11~1.PWN(1713) : error 029: invalid expression, assumed zero
else if (strcmp(cmd, "!flip", true) == 0) {
new Float:x, Float:y, Float:z;
GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
SendClientMessage(playerid, COLOR_GREEN, "Vehicle Flipped!");
return 1;
}
}
else if (strcmp(cmd, "!wep", true) == 0) {
new tmp2[256], wep;
tmp = strtok(cmdtext, idx), tmp2 = strtok(cmdtext, idx);
if(PlayerInfo[playerid][Logged] != 1) SendClientMessage(playerid, COLOR_RED, "You need to login first!");
else if (!strlen(tmp2)) SendClientMessage(playerid, COLOR_GREEN, "USAGE: !wep [WeaponName/ID] ammo");
else {
wep = FindWepIDFromString(tmp);
SetPlayerWeapon(playerid,wep,strval(tmp2));
}
return 1;
}