it gives Warning?
#1

Help me Pleaze

look on the Picture.

Reply
#2

Can you move that window out of the way, so we can see the code on the lines where the errors are?
Reply
#3

under this part

pawn Код:
if (strcmp("/p...", cmd, true) == 0)

make it like this

if (strcmp("/p...", cmd, true) == 0)
{
then at this part

pawn Код:
SendClientMessage(playerid, COLOR_...,"...");

put return 1; so like this

SendClientMessage(playerid, COLOR_...,"...");
return 1;
then at this part

pawn Код:
return 1;
}

make it like this

    SendClientMessage(playerid, COLOR_...,"...");
    return 1;
}
hope this helps
Reply
#4

it's fixed Now the Problem is this

i have this
if (strcmp("/ParkDM", cmdtext, true, 10) == 0)
SetPlayerPos(playerid, 2785.9299,10.8203,259.9806);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,26,1100);
GivePlayerWeapon(playerid,31,3500);
GivePlayerWeapon(playerid,16,5);
GivePlayerWeapon(playerid, 26, 10000);
SetPlayerSkin(playerid,287);
SendClientMessage(playerid, COLOR_YELLOW, "Teleported to ParkDM");

But in Game when i type /parkDM it don't Go To The PLace i want it "SetPlayerPos(playerid, 2785.9299,10.8203,259.9806);" what is wrong in this?

This is Savedpositions

0,1171.6135,2785.9299,10.8203,259.9806,0,0,0,0,0,0
Reply
#5

Pleaze Help
Sorry For Double Post
Reply
#6

Use this:

SetPlayerPos(playerid,1171.6135,2785.9299,10.8203) ;
You had cord's mixed up.

Peace...
Reply
#7

You're setting his angle co-ordinate as the z co-ordinate, which will cause problems. You should set the position to:

1171.6135,2785.9299,10.8203

According to your SavedPosition.txt file.

Edit: Too slow
Reply
#8

Wohooo Thanx I Now Can Script lol Thanks FOr Help!
Reply
#9

It should be
Код:
if (strcmp("/ParkDM", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 2785.9299,10.8203,259.9806);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,26,1100);
GivePlayerWeapon(playerid,31,3500);
GivePlayerWeapon(playerid,16,5);
GivePlayerWeapon(playerid, 26, 10000);
SetPlayerSkin(playerid,287);
SendClientMessage(playerid, COLOR_YELLOW, "Teleported to ParkDM");
return 1;
}
Reply
#10

Thanks anything Done but ingame when i type /aa or /a or /b or /something Anything with i.e /Noob i goto /parkDm why? anyone know how to fix it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)