így jobb :
if(strcmp(cmd, \"/health\", true) == 0) {
SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid, 0x33CCFFAA,\"Feltöltöted az életed\");
return 1;
}
használj sscanfet újabb gyorsabb egyszerûbb am szerintem menni fog
Linket dobsz?
Dupla hozzászólás automatikusan összefûzve. ( 2012. február 12. - 16:09:13 )
> link=topic=21059.msg224101#msg224101 date=1329059274]
így jobb :
if(strcmp(cmd, \"/health\", true) == 0) {
SetPlayerHealth(playerid,100.0);
SendClientMessage(playerid, 0x33CCFFAA,\"Feltöltöted az életed\");
return 1;
}
[/quote]
Lu$ta így :
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(8) : error 025: function heading differs from prototype
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(8) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(10) : error 010: invalid function or declaration
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(13) : error 010: invalid function or declaration
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(16) : error 010: invalid function or declaration
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(18) : error 054: unmatched closing brace (\"}\")
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(19) : error 010: invalid function or declaration
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(21) : warning 203: symbol is never used: \"Heal\"
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(21) : warning 203: symbol is never used: \"id\"
C:\\Documents and Settings\\kuruzslo\\Dokumentumok\\test\\gamemodes\\heal.pwn(21) : warning 203: symbol is never used: \"tmp\"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Errors.
[/quote]