public OnPlayerCommandText(playerid, cmdtext)
{
if(!strcmp("/carwash", cmdtext, true))
{
if(IsPlayerInRangeOfPoint(playerid, 1084227584, 1156507145, 3302951282, 1095845911))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == 2)
{
new var0 = 0;
while(++var0 < 89)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == glob2C[var0][0])
{
SendClientMessage(playerid, 0xAA3333AA, "You cannot have this vehicle washed.");
return 1;
}
CMD:carwash(playerid, parmas[])
{
if(IsPlayerInRangeOfPoint(playerid, 1084227584, 1156507145, 3302951282, 1095845911))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == 2)
{
new var0 = 0;
while(++var0 < 89)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == glob2C[var0][0])
{
SendClientMessage(playerid, 0xAA3333AA, "You cannot have this vehicle washed.");
return 1;
}
CMD:carwash(playerid, params []) { if(IsPlayerInRangeOfPoint(playerid, 1084227584, 1156507145, 3302951282, 1095845911)) { if(IsPlayerInAnyVehicle(playerid)) { if(GetPlayerState(playerid) == 2) { new var0 = 0; while(++var0 < 89) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == glob2C[var0][0]) { SendClientMessage(playerid, 0xAA3333AA, "You cannot have this vehicle washed."); return 1; } } } } } return 1; }
E:\Express Gaming Roleplay Server - Copy\filterscripts\carwash.pwn(141) : error 035: argument type mismatch (argument 1)
E:\Express Gaming Roleplay Server - Copy\filterscripts\carwash.pwn(141) : warning 213: tag mismatch
E:\Express Gaming Roleplay Server - Copy\filterscripts\carwash.pwn(151) : warning 213: tag mismatch
E:\Express Gaming Roleplay Server - Copy\filterscripts\carwash.pwn(176) : warning 213: tag mismatch
E:\Express Gaming Roleplay Server - Copy\filterscripts\carwash.pwn(176) : error 035: argument type mismatch (argument 3)
E:\Express Gaming Roleplay Server - Copy\filterscripts\carwash.pwn(187) : warning 213: tag mismatch
E:\Express Gaming Roleplay Server - Copy\filterscripts\carwash.pwn(187) : error 035: argument type mismatch (argument 3)
E:\Express Gaming Roleplay Server - Copy\filterscripts\carwash.pwn(192) : error 010: invalid function or declaration
E:\Express Gaming Roleplay Server - Copy\filterscripts\carwash.pwn(389) : warning 213: tag mismatch
E:\Express Gaming Roleplay Server - Copy\filterscripts\carwash.pwn(389) : error 035: argument type mismatch (argument 3)
E:\Express Gaming Roleplay Server - Copy\filterscripts\carwash.pwn(393) : warning 203: symbol is never used: "carwash"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Код:
CMD:carwash(playerid, params []) { if(IsPlayerInRangeOfPoint(playerid, 1084227584, 1156507145, 3302951282, 1095845911)) { if(IsPlayerInAnyVehicle(playerid)) { if(GetPlayerState(playerid) == 2) { new var0 = 0; while(++var0 < 89) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == glob2C[var0][0]) { SendClientMessage(playerid, 0xAA3333AA, "You cannot have this vehicle washed."); return 1; } } } } } return 1; } |