Jump to content

andrein2

Membru
  • Posts

    26
  • Joined

  • Last visited

    Never

Everything posted by andrein2

  1. Buna ziua am si eu o problema am acest cod [pawn] if(strcmp(cmd, "/switchkey", true) == 0) { if(IsPlayerConnected(playerid)) { if(!SwitchKey[playerid]) { if(HireCar[playerid] != 399) { SwitchKey[playerid] = 1; GameTextForPlayer(playerid, "~w~You control now your house car", 5000, 6); } else { GameTextForPlayer(playerid, "~w~You do not hire a car", 5000, 6); } return 1; } else { SwitchKey[playerid] = 0; GameTextForPlayer(playerid, "~w~You control now your hire car", 5000, 6); } } return 1; } if(strcmp(cmd, "/givekey", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); new car; if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "{00FF00}Folosire:{FFFFFF} /givekey [playerid/numejucator]"); return 1; } giveplayerid = ReturnUser(tmp); if(HireCar[playerid] == 299 && PlayerInfo[playerid][pPhousekey] == 255) { SendClientMessage(playerid, COLOR_GRAD1, " You dont have a key to give"); return 1; } else { if(HireCar[playerid] != 299 && SwitchKey[playerid] == 0) { car = HireCar[playerid]; gCarLock[car] = 0; UnLockCar(car); HireCar[playerid] = 299; } else { car = PlayerInfo[playerid][pPhousekey]+1; } } if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(ProxDetectorS(5.0, playerid, giveplayerid)) { if(HireCar[giveplayerid] != 299) { gCarLock[HireCar[giveplayerid]] = 0; UnLockCar(HireCar[giveplayerid]); } HireCar[giveplayerid] = car; GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), " You have given %s the key to your vehicle", giveplayer); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); SendClientMessage(playerid, COLOR_GRAD1, string); format(string, sizeof(string), " You have recieved the key to a vehicle from %s", sendername); SendClientMessage(giveplayerid, COLOR_GRAD1, string); format(string, sizeof(string), "* %s takes out a set of keys, and tosses them to %s.", sendername ,giveplayer); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } } } return 1;[/pawn] Si cand dau compile imi da aceste erori [pawn]C:\Users\Razvan\Desktop\Game4Win RolePlay\gamemodes\G4W.pwn(39559) : error 017: undefined symbol "SwitchKey" C:\Users\Razvan\Desktop\Game4Win RolePlay\gamemodes\G4W.pwn(39559) : warning 215: expression has no effect C:\Users\Razvan\Desktop\Game4Win RolePlay\gamemodes\G4W.pwn(39559) : error 001: expected token: ";", but found "]" C:\Users\Razvan\Desktop\Game4Win RolePlay\gamemodes\G4W.pwn(39559) : error 029: invalid expression, assumed zero C:\Users\Razvan\Desktop\Game4Win RolePlay\gamemodes\G4W.pwn(39559) : fatal error 107: too many error messages on one line[/pawn] Va rog ajutatima
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.