- 0
Cerere Ajutor Sistem Stunt
-
Similar Content
-
- 1 answer
- 135 views
-
- 9 replies
- 272 views
-
- 1 reply
- 227 views
-
- 1 reply
- 161 views
-
- 1 reply
- 218 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
xt3z0ne
Nick:Johnny
Problema:Deci mam pus sa fac un sistem de stunt " dar pana il rezolv fac un radio sistem
) " Deci am problema cu
PlayerInfo[giveplayerid][PointStunt](playerid,20);
Erori / warnings:[pawn]
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(60) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(60) : error 001: expected token: ";", but found "("
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(60) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(67) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(67) : error 001: expected token: ";", but found "("
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(67) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(74) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(74) : error 001: expected token: ";", but found "("
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(74) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(81) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(81) : error 001: expected token: ";", but found "("
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(81) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(88) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(88) : error 001: expected token: ";", but found "("
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(88) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(95) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(95) : error 001: expected token: ";", but found "("
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(95) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(102) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(102) : error 001: expected token: ";", but found "("
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(102) : warning 215: expression has no effect
D:\Games\DDSIDM~1\FILTER~1\stunt.pwn(243) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Errors.
[/pawn]
Lini/script:
[pawn]
public OnPlayerEnterCheckpoint(playerid)
{
new cpid = SetPlayerCheckpoint(playerid,2118.5864, 1483.0841, 23.4166,4.0);
if (cpid == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][PointStunt](playerid,20);
GameTextForPlayer(playerid,"~r~Good job you win 20~g~Stunt Point",5000,5);
}
new cpid2 = SetPlayerCheckpoint(playerid,1851.7083, 1426.3226, 15.9196,4.0);
if (cpid2 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][PointStunt](playerid,20);
GameTextForPlayer(playerid,"~r~Good job you win 20~g~Stunt Point",5000,5);
}
new cpid3 = SetPlayerCheckpoint(playerid,2000.9673, 1213.1139, 17.0789,4.0);
if (cpid3 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][PointStunt](playerid,20);
GameTextForPlayer(playerid,"~r~Good job you win 20~g~Stunt Point",5000,5);
}
new cpid4 = SetPlayerCheckpoint(playerid,2396.9082, 1146.4279, 33.2691,4.0);
if (cpid4 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][PointStunt](playerid,20);
GameTextForPlayer(playerid,"~r~Good job you win 20~g~Stunt Point",5000,5);
}
new cpid5 = SetPlayerCheckpoint(playerid,2776.7856, 1257.4076, 16.9512,4.0);
if (cpid5 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][PointStunt](playerid,20);
GameTextForPlayer(playerid,"~r~Good job you win 20~g~Stunt Point",5000,5);
}
new cpid6 = SetPlayerCheckpoint(playerid,1958.6522, 1943.2184, 22.2268,4.0);
if (cpid6 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][PointStunt](playerid,20);
GameTextForPlayer(playerid,"~r~Good job you win 20~g~Stunt Point",5000,5);
}
new cpid7 = SetPlayerCheckpoint(playerid,-1389.2230, 673.6660, 2.2660,4.0);
if (cpid7 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][PointStunt](playerid,20);
GameTextForPlayer(playerid,"~r~Good job you win 20~g~Stunt Point",5000,5);
}
return 1;
}
[/pawn]
Ai incercat sa rezolvi singur ?:
Eu cand am inceput sistemu am facut mai intai stunt point.
La comanda am facut asa.
[pawn]
CMD:setstunt(playerid, params[])
{
if(IsPlayerAdmin(playerid) == 0) return SendClientMessage(playerid, RED, "ERROR: Only admins can use that command!");
if(sscanf(params, "ud", giveplayerid, stunt1)) return SendClientMessage(playerid, RED, "USAGE: /setstunt [playerid] [stunt]");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, RED, "ERROR: That player is not connected!");
new file[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(giveplayerid, Global_Name, sizeof(Global_Name));GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name);
format(sstring, sizeof(sstring), "You have succesfully setted %s stunt to %d!", Global_Name, stunt1);
SendClientMessage(playerid, BLUE, sstring);
format(sstring, sizeof(sstring), "Admin %s has setted your stunt to %d!", Name, stunt1);
SendClientMessage(giveplayerid, BLUE, sstring);
PlayerInfo[giveplayerid][PointStunt] = stunt1;
dini_IntSet(file,"PointStunt:", PlayerInfo[giveplayerid][PointStunt]);
return 1;
}
[/pawn]
Care aveti rezolvare?
Sunt un retardat
Link to comment
Share on other sites
4 answers to this question
Recommended Posts