13.12.2012, 14:28
Por favor nгo digam que eu sou burro ou coisa do tipo, quem nгo quiser ajudar, nгo ajuda
7580:error 028: invalid subscript (not an array or too many subscripts): "Logged"
7580:warning 215: expression has no effect
7580:error 001: expected token: ";", but found "]"
7580:error 029: invalid expression, assumed zero
7580:fatal error 107: too many error messages on one line
esse foram 4 erros que apareceram quando passei um codigo do FS para o GM.
7580:error 028: invalid subscript (not an array or too many subscripts): "Logged"
7580:warning 215: expression has no effect
7580:error 001: expected token: ";", but found "]"
7580:error 029: invalid expression, assumed zero
7580:fatal error 107: too many error messages on one line
esse foram 4 erros que apareceram quando passei um codigo do FS para o GM.
pawn Код:
public OnPlayerConnect(playerid)
{
PlayerProps[playerid] = 0;
Logged[playerid] = 0;
EarningsForPlayer[playerid] = 0;
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
for(new propid; propid < PropertiesAmount; propid++)
{
if(PropInfo[propid][PropIsBought] == 1)
{
if(strcmp(PropInfo[propid][PropOwner], pName, true)==0)
{
EarningsForPlayer[playerid] += PropInfo[propid][PropEarning];
PlayerProps[playerid]++;
}
}
}
#if ENABLE_LOGIN_SYSTEM == 0
if(PlayerProps[playerid] > 0)
{
new str[128];
format(str, 128, "Vocк tem atualmente %d propriedades. use: /minhasprops para saber as info de suas propriedades.", PlayerProps[playerid]);
SendClientMessage(playerid, 0x99FF66AA, str);
}
#endif