25.02.2008, 08:08
Nice work i only get 2 errors
This is mine Public Onplayerdeath:
Код:
E:\Games\San Andreas\GTA San Andreas\samp\gamemodes\penlv.pwn(2671) : error 021: symbol already defined: "string" E:\Games\San Andreas\GTA San Andreas\samp\gamemodes\penlv.pwn(2670) : warning 204: symbol is assigned a value that is never used: "string" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
public OnPlayerDeath(playerid, killerid, reason) { if (gdebug >=0){printf("OnPlayerDeath Playerid:%d killerid:%d reason:%d", playerid, killerid, reason);} SendDeathMessage(killerid, playerid, reason); new name[MAX_PLAYER_NAME]; new string[256]; new string[200], kName[MAX_PLAYER_NAME], zone[MAX_ZONE_NAME]; GetPlayerName(playerid, string, MAX_PLAYER_NAME); GetPlayerName(killerid, kName, MAX_PLAYER_NAME); GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME); format(string, sizeof(string), "Player \'%s\' was killed by \'%s\' at %s.", string, kName, zone); printf("%s", string); new dmessage[128]; new deathreason[20]; new playercash; new victimteam; new Float:px,Float:py,Float:pz; //new killerteam; victimteam = (gTeam[playerid]); //killerteam = (gTeam[killerid]); gPlayerSpawned[playerid] = 0; SetPlayerWantedLevel(playerid,0); GetPlayerName(playerid, name, sizeof(name)); PlayerInfo[playerid][pLocal] = 255; GetPlayerPos(playerid, px, py, pz);