Search Results
You've probably forgotten a bracket somewhere.
164
pawn Код: if(!strcmp(IP[playerid],GetIp(playerid))){    printf("CurrentIP:%s", GetIp(playerid));    printf("LastSavedIP:%s", IP[playerid]);    if(Logged[playerid] == 0){    SendMessage(pla...
97
I've been having some issues with y_commands lately. If I set up the master system with the gamemode set to YSI_IS_CLIENT and all filterscripts to YSI_IS_SERVER, none of my commands work. Removing the...
41
Ever since upgrading to 0.3e from 0.3d, all on-foot NPCs in my server fail to walk. They rather slide around. As well, I have a few NPCs in seasparrows and hydras and they do not fire their weapons as...
52
The strcmp function returns 0 if the strings match, so change 'strcmp' to '!strcmp'
194
Show the dialog in 'OnPlayerRequestClass' instead of 'OnPlayerConnect'
144
A few things could be improved upon as well pawn Код: forward pAliveChecker( );public pAliveChecker( ){    new         Float:health;    for( new i; i < MAX_PLAYERS; ++i )    {    Â...
92
Yes, it checks if it matches any of the names. The code under the loop will only execute if no match is found.
168
pawn Код: for ( new i, s = sizeof ( szAvailableName ); i < s; ++i ) {    if ( !strcmp( params, szAvailableName[ i ] ) ) {        // return so the code does not continue to the no-match-fo...
168
Change the 3600000 to 3300000. A potential 60 minutes + 5 minutes is more than 'between 5 min and 1 hour'.
80
Certainly IsPlayerAdmin won't return 1 if the player is not connected?
120
pawn Код: for ( new i, s = strlen( string ); i < s; ++i )    if ( string[ i ] == '_' )        string[ i ] = ' ';
106
Should work fine. pawn Код: #include <a_samp>forward ServerLog( string[ ] );public ServerLog( string[ ] ){    new        day,        month,        year,        hour,    ...
97
Floatstr turns a string into a float. You are using it wrong.
68
So put the SendClientMessageToAll outside the loop!
116
pawn Код: #include <a_vehicles>
66
You appear to be trying to load a string as an integer, thus the argument type mismatch when attempting to use strcmp.
196
pawn Код: stock GetDistance( Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2 ){    return floatround( floatsqroot( ( ( x1 - x2 ) * ( x1 - x2 ) ) + ( ( y1 - y2 ) * ( y1 - y2 ) ) + ( ( ...
236